package com.example.login.factory

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.common.ListAircle

import com.example.login.viewmodel.LGViewModel

@Suppress("UNCHECKED_CAST")
class ViewModelFactory : ViewModelProvider.Factory {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        if (modelClass.isAssignableFrom(LGViewModel::class.java)) {
            return LGViewModel() as T
        }
        throw IllegalArgumentException("Unknown ViewModel class")
    }



}